package marina.Services;

import marina.interfaces.Account2IService;
import marina.model.Account2VO;

public class Account2Service implements Account2IService {

	@Override
	public void getMonthlyInterestRate(Account2VO ac) {
		double monthlyInterestRate = ac.getInterestRate()/12;
		ac.setMonthlyInterestRate(monthlyInterestRate);
	}

	@Override
	public void withDraw(Account2VO ac,int amount) {
		int withDraw = ac.getBalance() - amount;
		ac.setBalance(withDraw);
	}

	@Override
	public void deposit(Account2VO ac,int amount) {
		int deposit = ac.getBalance() + amount;
		ac.setBalance(deposit);
	}

}
